#ifndef _H_FILEPIPE
#define _H_FILEPIPE

#include "pipe.h"
#include <cstdio>

class filePipe: public pipe{

    public:
        FILE* file;

        filePipe();
        ~filePipe();

};

class inputFilePipe: public filePipe{

    public:
        inputFilePipe();
        ~inputFilePipe();

        unsigned long rAvail();
        bool isRAvail();

        dSStatus consumeIS();
        dSStatus seqConsumeIS();
        dSStatus operateIS(unsigned int);

};

class outputFilePipe: public filePipe{

    public:
        FILE* file;

        outputFilePipe();
        ~outputFilePipe();

        dSStatus consumeIS();
        dSStatus seqConsumeIS();
        dSStatus operateIS(unsigned int);

};

#endif
